import java.util.Scanner;

public class Training06 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);//与键盘建立连接
        System.out.println("请问打印多少行的等腰三角形");
        int num = sc.nextInt();
        for (int i = 0; i < num; i++) {
            for (int j = 0; j < num - i - 1; j++) {
                System.out.print(" ");
            }
            for (int j = 0; j <= i; j++) {
                System.out.print("* ");
            }
            System.out.println();
        }
    }
}
